package cn.coisini.model.common.exception;

import cn.coisini.model.common.enums.ResultEnum;
import lombok.Getter;

/**
 * @author xiangshaw
 * Description: 自定义异常
 */
@Getter
public class CustomAuthenticationException extends RuntimeException {
    private final ResultEnum resultEnum;
    private final String customMessage;

    public CustomAuthenticationException(ResultEnum resultEnum, String customMessage) {
        super(customMessage);
        this.resultEnum = resultEnum;
        this.customMessage = customMessage;
    }
}
